package com.breaktian.demoapp.ui;

import android.content.Intent;
import android.os.Bundle;

import com.breaktian.assemble.refresh.superrefresh.PullRefreshLayout;
import com.breaktian.assemble.testactivity.BaseModuleMainActivity;
import com.breaktian.assemble.utils.DeviceUtil;
import com.breaktian.demoapp.R;
import com.breaktian.demoapp.provider.BaseProvider;
import com.breaktian.demoapp.ui.base.BaseActivity;

public class TestRefreshLayoutActivity extends BaseActivity {

    private PullRefreshLayout pullRefreshLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_refresh_layout);
//        getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
        showToolbar("测试刷新组件");

        pullRefreshLayout = (PullRefreshLayout)findViewById(R.id.pullRefreshLayout);


        DeviceUtil.keepScreenOn(this,true);


        startActivity(new Intent(this, BaseModuleMainActivity.class));

    }



    @Override
    protected void onDestroy() {
        super.onDestroy();
        DeviceUtil.keepScreenOn(this,false);
    }

    @Override
    protected BaseProvider getProvider() {
        return null;
    }
}
